/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Алексей
 */

package ru.amse.podolsky.fractalarch;
import java.awt.image.*;
import java.io.*;
import javax.imageio.*;

public class ImagesIO {

    private final File path;
    
    private final BufferedImage buff;
    
    ImagesIO(String s) {
        this.path = new File(s);
        this.buff = null;
    }
    
    public BufferedImage read() throws IOException{
        return ImageIO.read(this.path);
    }
    
    public void write(BufferedImage buff) throws IOException{
       javax.imageio.ImageIO.write(buff, "bmp", this.path);
    }
}
